package interview.javabase.thread.runnable;

import lombok.AllArgsConstructor;

/**
 * @author 大硕
 * 2019-03-28 9:50 PM
 **/
@AllArgsConstructor
public class MyRunnable implements Runnable {

    private String name;

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("Thread start:" + this.name + ",is = " + i);
        }
    }
}